<?php
    include "conn.php";
    if(isset($_POST['tel'])&&isset($_POST['password'])){
        $tel= $_POST['tel'];
        $password = $_POST['password'];
       $result= $conn->query("SELECT * FROM registry WHERE tel='$tel' and password='$password'");
      if( $result->fetch_assoc()){
          echo 1;
      }else{
        echo 0;
      }
    };
?>